package Leaf;

import Competent.ACompement;

public class Leaf extends ACompement {

    private String myName;

    public Leaf(String name) {
        myName = name;
    }

    @Override
    public boolean AddChild(ACompement child) {
        return false;
    }

    @Override
    public boolean DeleteChild(ACompement child) {
        return false;
    }

    @Override
    public ACompement GetChild(int index) {
        return null;
    }

    @Override
    public void Func() {
        System.err.println("我是叶子😋" + myName);
    }

}
